
package com.canin.model;

import com.canin.util.CaninUtil;

public class Tool
{
	// common
    private int id;
    private String name;
    private String brand;
    private String description;
    private String size;
    private int shippingPrice;
    
    private int amount;
    private int price;
    private String currencyPrice;
    private int totalPrice;
    private String currencyTotalPrice;

	public int getAmount()
	{
		return amount;
	}

	public void setAmount(int amount)
	{
		this.amount = amount;
	}

	public int getTotalPrice()
	{
		return totalPrice;
	}

	public void setTotalPrice(int totalPrice)
	{
		setCurrencyTotalPrice( CaninUtil.convertToConcurrency((int)totalPrice, 2) );
		this.totalPrice = totalPrice;
	}

	public int getPrice()
	{
		return price;
	}

	public void setPrice(int price)
	{
		this.currencyPrice = CaninUtil.convertToConcurrency(price, 2);
		this.price = price;
	}

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getBrand()
	{
		return brand;
	}

	public void setBrand(String brand)
	{
		this.brand = brand;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public String getSize()
	{
		return size;
	}

	public void setSize(String size)
	{
		this.size = size;
	}

	public int getShippingPrice()
	{
		return shippingPrice;
	}

	public void setShippingPrice(int shippingPrice)
	{
		this.shippingPrice = shippingPrice;
	}

	public String getCurrencyPrice()
	{
		return currencyPrice;
	}

	public void setCurrencyPrice(String currencyPrice)
	{
		this.currencyPrice = currencyPrice;
	}

	public String getCurrencyTotalPrice()
	{
		return currencyTotalPrice;
	}

	public void setCurrencyTotalPrice(String currencyTotalPrice)
	{
		this.currencyTotalPrice = currencyTotalPrice;
	}

    
}
